package com.sdk.paas.core.exception;

import com.sdk.paas.core.enums.ErrorEnum;
import lombok.Data;

/**
 * @author limaosheng
 * @create 11:59 2021/9/2
 * @desc 事件自定义异常
 */
@Data
public class SaasToolException extends RuntimeException {

    private Integer code;
    private String message;

    public SaasToolException(ErrorEnum e) {
        this.code = e.getKey();
        this.message = e.getDesc();
    }
}
